"use strict";
exports.__esModule = true;
exports.youngCore = void 0;
var koa_1 = require("koa");
var _ = require("lodash");
var youngCore = /** @class */ (function () {
    function youngCore(ctx) {
        if (ctx) {
            if (ctx instanceof koa_1["default"]) {
                this.app = ctx;
            }
            else {
                this.ctx = ctx;
                this.app = ctx.app;
                this.query = _.cloneDeep(ctx.request.query);
                this.body = _.cloneDeep(ctx.request.body);
            }
        }
    }
    return youngCore;
}());
exports.youngCore = youngCore;
